﻿<MudButton Variant="Variant.Filled" OnClick="()=>_visible=true">Open</MudButton>

<MudDialog @bind-Visible="_visible">
    <DialogContent>
        <MudText>Scorpiany!</MudText>
        <MudButton Variant="Variant.Filled" OnClick="()=>_nestedVisible=true">Open Nested</MudButton>
        <MudDialog @bind-Visible="_nestedVisible">
            <DialogContent>
                <MudText Class="nested">Nested dialog!</MudText>
            </DialogContent>
            <DialogActions>
                <MudButton Color="Color.Primary" OnClick="()=>_nestedVisible=false">Close</MudButton>
            </DialogActions>
        </MudDialog>
    </DialogContent>
    <DialogActions>
        <MudButton Color="Color.Primary" OnClick="()=>_visible=false">Close</MudButton>
    </DialogActions>
</MudDialog>

@code {
    public static string __description__ = "Click on open will open the inlined dialog, and the nested dialog can be opened with a second click";

    private bool _visible;
    private bool _nestedVisible;
}
